package com.itheima.web;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.service.ItmereportService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/itmereport")
public class ItmereportController {

    @Reference
    ItmereportService itmereportService;

    @RequestMapping("/getMemberSex")
    public Result getMemberSex(){
        List<Map> maps = itmereportService.findsex();

        return Result.success("",maps);
    }


    @RequestMapping("/getMemberAge")
    public Result getMemberAge(){
        List<Map> maps = itmereportService.findage();
        return Result.success("",maps);
    }
}
